import java.util.Scanner;

/**
 * @TODO
 * @Author xu
 * 2025/2/21
 */
public class work5 {
    public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    System.out.print("输入第一个值 (true/false)：");
    boolean a = scanner.nextBoolean();

    System.out.print("输入第二个值 (true/false)：");
    boolean b = scanner.nextBoolean();

    System.out.println("a && b: " + (a && b));
    System.out.println("a || b: " + (a || b));
    System.out.println("!a: " + (!a));
    System.out.println("!b: " + (!b));


}


}
